<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>  
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script>  
</head>
<body>
<form method="post" action="SelectUser">
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 查询用户信息</strong></div>
    <div class="padding border-bottom">
      <ul class="search">
        <li>
          <input type="text" class="input w50" name="user.pnumber" size="50" placeholder="请输入手机号" onBlur="CheckPhone(this)" data-validate="required:请输入用户真实姓名,length#<=10:姓名长度小于等于10位" />
          <button type="submit" class="button border-red"><span class="icon-search"></span>查询</button>
        </li>
      </ul>
    </div>
    <table class="table table-hover text-center">
      <tr>
        <th width="30%">手机号</th>
        <th width="10%">密码</th>       
        <th width="10%">姓名</th>
        <th width="10%">性别</th>
        <th width="10%">年龄</th>
        <th width="30%">余额</th>   
      </tr>      
        <tr>
          <td> ${userinfo.pnumber}</td>
          <td> ${userinfo.upwd}</td>
          <td> ${userinfo.uname}</td>
          <td> ${userinfo.sex}</td>  
          <td> ${userinfo.age}</td>         
          <td> ${userinfo.balance}</td>
        </tr>
    </table>
  </div>
</form>
</body>
 <script>
 function CheckPhone(el){
 var mobile = /^(13[0-9])|(15[0-9])|(16[0-9])|(17[0-9])|(18[0-9])\d{8}$/i;
 if(!mobile.test(el.value))
      alert("不是规范的手机号，请输入正确手机号");
 }
 </script> 
</html>
